const { exec } = require('child_process');
const path = require('path');

// 指定nodejs终端执行的默认路径为当前路径 /config
const workingDic = path.resolve(__dirname);

console.log('workingDic: ', workingDic);
exec('node ./package.cjs', { cwd: workingDic, env: workingDic }, function (error, stdout, stderr) {
	console.log(error, stdout, stderr);
});
